package cn.ly.net.tcp;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Servers {
	
	public static void main(String[] args) throws IOException {
		ServerSocket ss = new ServerSocket(22222);
		
		//BufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream()));
		String line = null;
		/*while( (line = br.readLine()) != null){
			System.out.println(line);
		}
		
		s.close();*/
		
		while(true){
			Socket s = ss.accept();
			//BufferedWriter br = new BufferedWriter(new FileWriter(s.getOutputStream()));
			//br.close();
			Thread t1 = new Thread();
			//t1.setSocket(s);
			t1.start();
			
			//t2
		}
		
		
	}

}
